package com.haiheng.library_base.db

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import java.util.*

/**
 *
 * @Des: 离线记录表
 * @Author: hwz
 * @Date:2022/5/25 0025
 * @Version: 1.0
 */
@Entity(tableName = "record_table", indices = [Index(value = ["barCode","recordType"], unique = true)])
data class RecordTable(

    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,
    //记录类型 单册上架：SINGLE_VOLUME_DEPLOYMENT
    var recordType: String? = null,
    //状态 0: 成功 -1 ：失败
    var status: Int = -1,
    var createDate: Date = Date(),
    var barCode: String? = null,
    var currentPlaceIndex: Int = 0,
    var locationType: Int = 0,
    var outLayNo: String = ""
)